Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 10 - AppleTalk Addressing / AppleTalk Addressing Reference
Functions


OTInitNBPAddress

Initializes an NBP address structure.

C INTERFACE
size_t OTInitNBPAddress(NBPAddress* address, const char* name);
C++ INTERFACES
None. C++ applications use the C interface to this function.

PARAMETERS
address
A pointer to the NBP address structure you wish to initialize.
name
A pointer to the NBP string you wish to use for the NBP name.
DESCRIPTION
The OTInitNBPAddress function can be used to initialize an NBP address structure with the NBP name specified in the name parameter, which is assumed to already be in the correct string format. The function returns the size of the NBP address structure, which is the size of the fAddressType field plus the length of the string in the name parameter.

SEE ALSO
The NBP address structure is described in the section "The NBP Address Structure," beginning on page 10-17.

To initialize a DDP address, use the OTInitDDPAddress function (page 10-21).

To initialize a combined DDPNBP address, use the OTInitDDPNBPAddress function (page 10-23).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996